import { request } from "./request";
// 系统管理

export function postSystem(username:string,passwd:string,organization:any,status:string,realName:string,email:string,phone:string) {
  return request({
      url: '/user/create_account',
      method: 'post',
      data:{
        username,
        passwd,
        organization,
        status,
        realName,
        email,
        phone
      }
  })
}

export function getSystemList(offset:string, count:string) {
  return request({
      url: '/user/get_users',
      method: 'get',
      params: {
        offset,
        count
      }
  })
}
export function putSystem(userId:string) {
  return request({
      url: '/user/ban_user',
      method: 'put',
      data:{
        userId
      }
  })
}
export function delSystem(userId:any) {
  return request({
      url: '/user/delete_user',
      method: 'delete',
      data:{
        userId
      }
  })
}
export function updateSystem() {
  return request({
      url: '/user/update_account',
      method: 'put',
  })
}